package com.qf.device.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qf.device.Dto.DriverMqttDto;
import com.qf.device.entity.Device;
import com.qf.product.dto.PageDto;
import com.qf.vo.PageResult;
import com.qf.vo.R;

/**
 * <p>
 * 设备表 服务类
 * </p>
 *
 * @author wxh
 * @since 2023-10-27
 */
public interface DeviceService extends IService<Device> {

    public R insertDevice(Device device);
    public PageResult<Device> page(PageDto<Device> pageDto);

    /**
     * 设备认证
     * @param driverMqttDto 网关设备传递参数
     * @return  响应网关设备
     */
    public R<DriverMqttDto> auth(DriverMqttDto driverMqttDto);
}
